<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewEventsTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewEventsLabel_eventId}"/>
                    <h:outputText value="#{eventsController.selected.eventId}" title="#{bundle.ViewEventsTitle_eventId}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_eventName}"/>
                    <h:outputText value="#{eventsController.selected.eventName}" title="#{bundle.ViewEventsTitle_eventName}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_eventYear}"/>
                    <h:outputText value="#{eventsController.selected.eventYear}" title="#{bundle.ViewEventsTitle_eventYear}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_eventMonth}"/>
                    <h:outputText value="#{eventsController.selected.eventMonth}" title="#{bundle.ViewEventsTitle_eventMonth}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_eventDay}"/>
                    <h:outputText value="#{eventsController.selected.eventDay}" title="#{bundle.ViewEventsTitle_eventDay}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_eventHour}"/>
                    <h:outputText value="#{eventsController.selected.eventHour}" title="#{bundle.ViewEventsTitle_eventHour}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_eventMinute}"/>
                    <h:outputText value="#{eventsController.selected.eventMinute}" title="#{bundle.ViewEventsTitle_eventMinute}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_duration}"/>
                    <h:outputText value="#{eventsController.selected.duration}" title="#{bundle.ViewEventsTitle_duration}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_location}"/>
                    <h:outputText value="#{eventsController.selected.location}" title="#{bundle.ViewEventsTitle_location}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_private1}"/>
                    <h:outputText value="#{eventsController.selected.private1}" title="#{bundle.ViewEventsTitle_private1}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_shared}"/>
                    <h:outputText value="#{eventsController.selected.shared}" title="#{bundle.ViewEventsTitle_shared}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_desiredWeather}"/>
                    <h:outputText value="#{eventsController.selected.desiredWeather}" title="#{bundle.ViewEventsTitle_desiredWeather}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_forcWeatherType}"/>
                    <h:outputText value="#{eventsController.selected.forcWeatherType}" title="#{bundle.ViewEventsTitle_forcWeatherType}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_forcTemp}"/>
                    <h:outputText value="#{eventsController.selected.forcTemp}" title="#{bundle.ViewEventsTitle_forcTemp}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_forcRainProb}"/>
                    <h:outputText value="#{eventsController.selected.forcRainProb}" title="#{bundle.ViewEventsTitle_forcRainProb}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_forcWind}"/>
                    <h:outputText value="#{eventsController.selected.forcWind}" title="#{bundle.ViewEventsTitle_forcWind}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_forcHumidity}"/>
                    <h:outputText value="#{eventsController.selected.forcHumidity}" title="#{bundle.ViewEventsTitle_forcHumidity}"/>
                    <h:outputText value="#{bundle.ViewEventsLabel_creator}"/>
                    <h:outputText value="#{eventsController.selected.creator}" title="#{bundle.ViewEventsTitle_creator}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{eventsController.destroyAndView}" value="#{bundle.ViewEventsDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewEventsEditLink}"/>
                <br />
                <h:commandLink action="#{eventsController.prepareCreate}" value="#{bundle.ViewEventsCreateLink}" />
                <br />
                <h:commandLink action="#{eventsController.prepareList}" value="#{bundle.ViewEventsShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewEventsIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
